﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;

namespace CSharpDesign.BLL
{
    public class NewsTypeService
    {
        /// <summary>
        /// 根据新闻类型获取新闻
        /// </summary>
        /// <param name="typeName"></param>
        /// <returns></returns>
        public DataSet getNewsTypeList(string typeName) 
        {
            string sql = "select * from News  where TypeName='" + typeName + "' order by id desc";
            return CommonHelper.GetDataByAdapter(sql);
        }
    }
}